package net.maku.qdd.convert;

import net.maku.qdd.entity.TicketEntity;
import net.maku.qdd.vo.TicketVO;
import net.maku.qdd.vo.TicketExcelVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 优惠券
 *
 * @author MAKU babamu@126.com
 * <a href="https://maku.net">MAKU</a>
 */
@Mapper
public interface TicketConvert {
    TicketConvert INSTANCE = Mappers.getMapper(TicketConvert.class);

    TicketEntity convert(TicketVO vo);

    TicketVO convert(TicketEntity entity);

    List<TicketVO> convertList(List<TicketEntity> list);

    List<TicketEntity> convertList2(List<TicketVO> list);

    TicketExcelVO convertToExcel(TicketEntity entity);

    List<TicketExcelVO> convertExcelList(List<TicketEntity> list);

    TicketEntity convertFromExcel(TicketExcelVO excelVO);

    List<TicketEntity> convertExcelList2(List<TicketExcelVO> list);
}